package com.ruoyi.webContent.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.webContent.domain.Mt5Point;
import com.ruoyi.webContent.mapper.Mt5PointMapper;
import com.ruoyi.webContent.service.IMt5PointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * mt5PointService业务层处理
 * 
 * @author ruoyi
 * @date 2020-06-29
 */
@Service
public class Mt5PointServiceImpl implements IMt5PointService
{
    @Autowired
    private Mt5PointMapper mt5PointMapper;

    /**
     * 查询mt5Point
     * 
     * @param id mt5PointID
     * @return mt5Point
     */
    @Override
    public Mt5Point selectMt5PointById(Long id)
    {
        return mt5PointMapper.selectMt5PointById(id);
    }

    /**
     * 查询mt5Point列表
     * 
     * @param mt5Point mt5Point
     * @return mt5Point
     */
    @Override
    public List<Mt5Point> selectMt5PointList(Mt5Point mt5Point)
    {
        return mt5PointMapper.selectMt5PointList(mt5Point);
    }

    /**
     * 新增mt5Point
     * 
     * @param mt5Point mt5Point
     * @return 结果
     */
    @Override
    public int insertMt5Point(Mt5Point mt5Point)
    {
        return mt5PointMapper.insertMt5Point(mt5Point);
    }

    /**
     * 修改mt5Point
     * 
     * @param mt5Point mt5Point
     * @return 结果
     */
    @Override
    public int updateMt5Point(Mt5Point mt5Point)
    {
        return mt5PointMapper.updateMt5Point(mt5Point);
    }

    /**
     * 删除mt5Point对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteMt5PointByIds(String ids)
    {
        return mt5PointMapper.deleteMt5PointByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除mt5Point信息
     * 
     * @param id mt5PointID
     * @return 结果
     */
    @Override
    public int deleteMt5PointById(Long id)
    {
        return mt5PointMapper.deleteMt5PointById(id);
    }
}
